package com.gdrcu.efp.cus.common;

/**
 * Description:
 * Date:2020/8/10 16:39
 * Create by :zhangbf
 */
public enum CompanyStatusEnum {


    /**
     * 1 在营（开业）
     * 2 吊销
     * 3 注销
     * 4 迁出
     * 5 停业
     * 9 其他
     */
    ZAI_YING("1","在营"),
    DIAO_XIAO("2","吊销"),
    ZHU_XIAO("3","注销"),
    QIAN_CHU("4","迁出"),
    TING_YE("5","停业"),
    QI_TA("9","其他"),
     ;
    private String key;
    private String value;
    public String getKey() {
        return key;
    }
    public String getValue() {
        return value;
    }
    private CompanyStatusEnum(String key, String value) {
        this.key = key;
        this.value = value;
    }
      public static String parseKey(String key) {
        for(CompanyStatusEnum certType : CompanyStatusEnum.values()) {
            if(certType.key.equals(key)) {
                return certType.getValue();
            }
        }
        return "";
    }


}
